<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('wechat/oauth')}">{:L('ADMIN_OAUTH_INDEX')}</a></li>
			<li><a href="{:U('wechat/oauth_add')}">{:L('ADMIN_OAUTH_ADD')}</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('wechat/oauth_post')}">
			<table class="table table-hover table-bordered table-list" id="menus-table">
				<thead>
					<tr>
						<th width="4%">{:L('OAUTH_ID')}</th>
						<th width="40%">{:L('MENU_URL')}</th>
						<th width="40%">{:L('WEB_URL')}</th>
						<th width="8%">{:L('CLICK')}</th>
						<th width="8%">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="oauth" item="item">
						<tr>
							<td>{$item.oid}</td>
							<td>{$baseurl}InnerManager/index.php?g=Weixin&m=oauth&a=index&id={id}&oid={$item.oid}</td>
							<td>{$item.weburl}</td>
							<td>{$item.click}</td>
							<td>
								<a href="{:U('wechat/oauth_edit',array('id'=>$item['oid']))}">{:L('EDIT')}</a>|
								<a href="{:U('wechat/oauth_delete',array('id'=>$item['oid']))}" class="js-ajax-delete">{:L('DELETE')}</a>
							</td>
					  	</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>